package com.hery.driver;

import com.hery.demo.AlertManagerSinkDemo;
import com.hery.demo.KafkaDemo;
import com.hery.demo.SourceDemo;
import com.hery.utils.ProgramDriver;


/**
 * 通过ProgramDriver类注册本项目可以运行的job有那些
 * 可以在项目上线时规定有那些任务可以运行
 */
public class Driver {
    public static void main(String[] args) throws Throwable {

        ProgramDriver driver = new ProgramDriver();
        driver.addClass("SentryAlertJobDriver", SentryAlertJobDriver.class, "SentryAlertJobDriver");
        driver.addClass("kafkaDemo", KafkaDemo.class, "kafkaDemo");
        driver.addClass("SourceDemo", SourceDemo.class, "SourceDemo");
        driver.addClass("AlertManagerSinkDemo", AlertManagerSinkDemo.class, "AlertManagerSinkDemo");
        driver.addClass("JsonAlertJobDriver", JsonAlertJobDriver.class, "MysqlAndAlertManagerSink --app.type <client_event、cloud_log、>");

        driver.driver(args);

    }
}
